namespace Framework.Utils.SingletonTemplate
{
    public abstract class MgrBase<T> where T : MgrBase<T> , new()
    {

        private static T _instance;

        public static T Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new T();
                    _instance.InitMge();
                }

                return _instance;
            }
        }
        protected abstract void InitMge();

    }
}